using System;
using System.Collections.Generic;
using System.Text;
using AF_ORM.CORE;
namespace Bussiness.Entity
{
                

     public class CmsNewsEntity:AF_ORM.CORE.BaseEntity
    {
         public CmsNewsEntity()
         {
             tableName = "CmsNews";


			 fieldInfos.Add(new FieldInfo("CmsNews","CategoryId","CategoryId","Guid",0,false,true,false,false,"","",""));
			 fieldInfos.Add(new FieldInfo("CmsNews","CreatedBy","CreatedBy","string",1000,false,true,false,false,"","",""));
			 fieldInfos.Add(new FieldInfo("CmsNews","CreatedDate","CreatedDate","DateTime",0,false,true,false,false,"","",""));
			 fieldInfos.Add(new FieldInfo("CmsNews","History","History","string",-1,false,true,true,false,"","",""));
			 fieldInfos.Add(new FieldInfo("CmsNews","Id","Id","Guid",0,true,false,false,false,"","",""));
			 fieldInfos.Add(new FieldInfo("CmsNews","IntId","IntId","int",0,false,false,false,false,"","",""));
			 fieldInfos.Add(new FieldInfo("CmsNews","Photo","Photo","string",512,false,true,true,false,"","",""));
			 fieldInfos.Add(new FieldInfo("CmsNews","UpdatedBy","UpdatedBy","string",100,false,true,false,false,"","",""));
			 fieldInfos.Add(new FieldInfo("CmsNews","UpdatedDate","UpdatedDate","DateTime",0,false,true,false,false,"","",""));
         }
       //properties
                    
		 protected Guid m_CategoryId;
		 protected string m_CreatedBy;
		 protected DateTime m_CreatedDate;
		 protected string m_History;
		 protected Guid m_Id;
		 protected int m_IntId;
		 protected string m_Photo;
		 protected string m_UpdatedBy;
		 protected DateTime m_UpdatedDate;

		 public Guid CategoryId

          { 
                get { 
                    return m_CategoryId;}

                set{m_CategoryId=value;

                    GetField("CategoryId").Set();
                    GetField("CategoryId").IsNull=(value == null);           
                    }
          }
		 public string CreatedBy

          { 
                get { 
                    return m_CreatedBy;}

                set{m_CreatedBy=value;

                    GetField("CreatedBy").Set();
                    GetField("CreatedBy").IsNull=(value == null);           
                    }
          }
		 public DateTime CreatedDate

          { 
                get { 
                    return m_CreatedDate;}

                set{m_CreatedDate=value;

                    GetField("CreatedDate").Set();
                    GetField("CreatedDate").IsNull=(value == null);           
                    }
          }
		 public string History

          { 
                get { 
                    return m_History;}

                set{m_History=value;

                    GetField("History").Set();
                    GetField("History").IsNull=(value == null);           
                    }
          }
		 public Guid Id

          { 
                get { 
                    return m_Id;}

                set{m_Id=value;

                    GetField("Id").Set();
                    GetField("Id").IsNull=(value == null);           
                    }
          }
		 public int IntId

          { 
                get { 
                    return m_IntId;}

                set{m_IntId=value;

                    GetField("IntId").Set();
                    GetField("IntId").IsNull=(value == null);           
                    }
          }
		 public string Photo

          { 
                get { 
                    return m_Photo;}

                set{m_Photo=value;

                    GetField("Photo").Set();
                    GetField("Photo").IsNull=(value == null);           
                    }
          }
		 public string UpdatedBy

          { 
                get { 
                    return m_UpdatedBy;}

                set{m_UpdatedBy=value;

                    GetField("UpdatedBy").Set();
                    GetField("UpdatedBy").IsNull=(value == null);           
                    }
          }
		 public DateTime UpdatedDate

          { 
                get { 
                    return m_UpdatedDate;}

                set{m_UpdatedDate=value;

                    GetField("UpdatedDate").Set();
                    GetField("UpdatedDate").IsNull=(value == null);           
                    }
          }

}
}
